//
//  YZSwineHeaderView.h
//  VET
//
//  Created by 刘文靖 on 2018/8/2.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, YZSwineHeaderViewType) {
    // 猪只
    YZSwineHeaderViewSwine,
    // 猪群
    YZSwineHeaderViewHerd,
    // 死淘
    YZSwineHeaderViewDieout
};

@protocol YZSwineHeaderViewDelegate <NSObject>
@optional
///> 返回
- (void)backButtonClicked;
///> 搜索
- (void)searchButtonClicked;
///> 菜单
- (void)menuButtonClick:(UIButton *)sender;
@end

@interface YZSwineHeaderView : UIView
- (instancetype)initWithType:(YZSwineHeaderViewType)type;
@property (nonatomic, weak) id<YZSwineHeaderViewDelegate> delegate;
@property (nonatomic, strong) UIButton *rightSearchBtn;
@property (nonatomic, strong) UIButton *searchBtn;
@end
